PROGRAM = ../run/worker
SRC = common.cc Exp.cc main.cc OpConsume.cc OpInput.cc OpOutput.cc OpBEGroupBy.cc Op.cc OpCompute.cc OpFilter.cc OpGroupBy.cc OpScan.cc worker.cc SerializableOutput.cc Network.cc
STATIC_LIBRARIES = ../node_environment/libnode_environment.a ../utils/libutils.a ../netio/libnetio.a ../grid_server/proto/libgrid_server_pb.a ../proto/libproto.a
DYNAMIC_LIBRARIES = -lboost_system -lboost_thread -lprotobuf -lpthread
EXTRA_CLEAN = unit_tests

include ../program_build.mk

unit_tests: unit_tests.cc $(OBJ:main.o=) $(STATIC_LIBRARIES)
	g++ -o $@ unit_tests.cc $(OBJ:main.o=) $(STATIC_LIBRARIES) $(CXXFLAGS) $(DYNAMIC_LIBRARIES)
